SftTree/NET 2.0

ItemCollectionClass Class

Softel vdm, Inc.

  ItemCollectionClass Class (Softelvdm.SftTreeNET Namespace)

An instance of the ItemCollectionClass class represents an item collection.

An item collection is a group of sibling items. A SftTree/NET control contains an item collection, which is accessible using the control's ItemCollection property.

Each item in turn can contain its own item collection (dependents), which is accessible through the ItemClass.Children property.

VB   

Public Class ItemCollectionClass Inherits CollectionBase

C#   

public class ItemCollectionClass : CollectionBase

C++   

public ref class ItemCollectionClass : public CollectionBase


Public

Constructors

Properties

Fields

Methods

Events

Protected

Constructors

Properties

Fields

Methods

 


Public Constructors

Description

none

This class cannot be instantiated.

   

Public Properties

Description

public propertyCapacity

Defines the number of items that the ItemCollectionClass instance can contain.

public propertyCountinherited from System.Collections.CollectionBase

Gets the number of elements contained in the CollectionBase instance.

public propertyFirst

Returns the first item in the item collection.

public propertyItem

Returns the specified item or cell.

public propertyLast

Returns the last item in the item collection.

public propertyTotalItems

Returns the total number of items in this item collection, including any immediate and indirect dependents.

public propertyVisibleItems

Returns the total number of items in this item collection that are visible, including any immediate and indirect dependents that are visible.

  

Public Methods

Description

public methodAdd

Adds a new item at the end of the item collection.

public methodClear

Removes all items from the item collection.

public methodCollapse

Expands all items in the item collection so their dependents become visible.

public methodEqualsinherited from System.Object

Determines whether the specified Object is equal to the current Object.

public methodExpand

Collapses all items in the item collection so their dependents are hidden.

public methodGetEnumeratorinherited from System.Collections.CollectionBase

Returns an enumerator that iterates through the CollectionBase instance.

public methodGetHashCodeinherited from System.Object

Serves as a hash function for a particular type. GetHashCode is suitable for use in hashing algorithms and data structures like a hash table.

public methodGetTypeinherited from System.Object

Gets the Type of the current instance.

public methodInsertFirst

Inserts a new item at the start of the item collection.

public methodstatic / sharedReferenceEqualsinherited from System.Object

Determines whether the specified Object instances are the same instance.

public methodRemoveAtinherited from System.Collections.CollectionBase

Removes the element at the specified index of the CollectionBase instance.

public methodSort

Sorts the items in the item collection.

public methodToStringinherited from System.Object

Returns a String that represents the current Object.

  

Protected Properties

Description

protected propertyInnerListinherited from System.Collections.CollectionBase

Gets an ArrayList containing the list of elements in the CollectionBase instance.

protected propertyListinherited from System.Collections.CollectionBase

Gets an IList containing the list of elements in the CollectionBase instance.

  

Protected Methods

Description

protected methodFinalizeinherited from System.Object

Allows an Object to attempt to free resources and perform other cleanup operations before the Object is reclaimed by garbage collection.

protected methodMemberwiseCloneinherited from System.Object

Creates a shallow copy of the current Object.

protected methodOnClearinherited from System.Collections.CollectionBase

Performs additional custom processes when clearing the contents of the CollectionBase instance.

protected methodOnClearCompleteinherited from System.Collections.CollectionBase

Performs additional custom processes after clearing the contents of the CollectionBase instance.

protected methodOnInsertinherited from System.Collections.CollectionBase

Performs additional custom processes before inserting a new element into the CollectionBase instance.

protected methodOnInsertCompleteinherited from System.Collections.CollectionBase

Performs additional custom processes after inserting a new element into the CollectionBase instance.

protected methodOnRemoveinherited from System.Collections.CollectionBase

Performs additional custom processes when removing an element from the CollectionBase instance.

protected methodOnRemoveCompleteinherited from System.Collections.CollectionBase

Performs additional custom processes after removing an element from the CollectionBase instance.

protected methodOnSetinherited from System.Collections.CollectionBase

Performs additional custom processes before setting a value in the CollectionBase instance.

protected methodOnSetCompleteinherited from System.Collections.CollectionBase

Performs additional custom processes after setting a value in the CollectionBase instance.

protected methodOnValidateinherited from System.Collections.CollectionBase

Performs additional custom processes when validating a value.

  

See Also     Softelvdm.SftTreeNET Namespace


Feedback / comments / error reports for this topic
© 2007 - Softel vdm, Inc. - www.softelvdm.com